package com.mycompany.helloswing;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;
import javax.swing.WindowConstants;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        SwingUtilities.invokeLater(new Runnable() {

            public void run() {
//                throw new UnsupportedOperationException("Not supported yet.");
                System.out.println("Event Dispatching thread in running");
//                createWelcomeWindow();
//                new CelsiusConverter().setVisible(true);
//                new TopLevelDemo();
                new JComponentStudy();
//                new TextSamplerDemo();
            }
            
        });
        
        System.out.println("App thread in running");
         
    }
    
    //create a very simple "hello world" app window
    public static void createWelcomeWindow() {
        JFrame frame = new JFrame("Hello App");
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        
        JLabel label = new JLabel("Hello Swing!");
        frame.getContentPane().add(label);
        
        frame.pack();
        frame.setVisible(true);
    }
}
